<template>
	<div class="vhead">
		<div class="vheader">
	    <div class="vheader_left">
	      <div class="logo">
	        <img src="../assets/logo.png">
	      </div>
	      <div class="h_title">
	        <h5>找个电影</h5>
	        <p>查影讯就是这么方便！</p>
	      </div>
	    </div>
      <div class="serch">
        <input class="search" type="text" value="请输入电影名" v-on:click="gotosearch">
      </div>
	  </div>
	  <div id="date_class">
	    <router-link to="/"  class="on" >正在热映</router-link>
	    <router-link to="/MovieWill" class="will" >即将上映</router-link>
	  </div>
	</div>
</template>

<script>
	export default {
		methods: {
	    gotosearch: function() {
	      this.$router.push({name:'MovieSearch'})
	    }
	  }
	}
</script>

<style scoped>
	 body, button, input, select, textarea {
    font: 12px/1.5 tahoma,arial,"\5b8b\4f53";
  }
  .vheader{
    padding: 10px 20px;
    background-color: #e5e9f2;
    border:0;
    height: 40px;
    display: flex;
  }
  .vheader_left {
    height: 44px;
    flex: 3;
    display: flex;
  }
  .vheader .h_title{
    flex: 3;
    margin-left: 3px;
    line-height: 22px;
  }
  .vheader .h_title h5{
    font-size: 17px;
    font-weight: 700;
    color: #333;
  }
  .vheader .h_title p{
    font-size: 12px;
    color: #999;
    overflow: hidden;
  }
  .vheader .logo{
    flex: 1;
  }
  .vheader .logo img {
    height: 50px;width: 42px;
  }
  
  .serch {
    flex: 1;
    padding-right: 10px;
  }
  .search {
    width: 80px;
    background: #fff;
    border-radius: 15px;
    height: 40px;
    padding-left: 10px;
    border:0;
    color: #999;
  }
  #date_class{
  height: 35px;
  background-color: #df2d2d;
  text-align: center;
}
#date_class a{
  width: 50%;
  text-decoration: none;
  color: #fff;
  font-size: 20px;
  float: left;
  line-height: 35px;
}
</style>